/* Video page styles */
.list {
  flex: 1;
  padding: 0;
  margin: 0;
}

.componentSection {
  padding: 20px;
  background-color: var(--background-color, #f5f5f5);
  min-height: 100vh;
}

.sectionTitle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-text-color, #333);
  margin-bottom: 24px;
  text-align: center;
}

.componentBlock {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.componentItem {
  background: var(--card-background, #ffffff);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color, #e5e5e5);
}

.itemLabel {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-text-color, #333);
  margin-bottom: 8px;
}

.itemDesc {
  font-size: 14px;
  color: var(--secondary-text-color, #666);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Video container styles */
.videoContainer {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.videoElement {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  display: block;
}

/* Basic video controls */
.videoControls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
}

.playButton {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.playButton:hover {
  background: rgba(255, 255, 255, 0.1);
}

.timeInfo {
  font-size: 14px;
  font-weight: 500;
  min-width: 100px;
}

.progressBar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.progressBar::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: #007aff;
  border-radius: 50%;
  cursor: pointer;
}

.progressBar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #007aff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Custom video controls */
.customControls {
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
  padding: 16px;
  color: white;
}

.controlsRow {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  justify-content: center;
}

.controlButton {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.controlButton:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.playButtonLarge {
  background: #007aff;
  font-size: 16px;
  padding: 10px 20px;
}

.playButtonLarge:hover {
  background: #0056b3;
}

.progressContainer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeLabel {
  font-size: 14px;
  font-weight: 500;
  min-width: 45px;
  text-align: center;
}

.progressWrapper {
  flex: 1;
}

.customProgressBar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.customProgressBar::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: #007aff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.customProgressBar::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #007aff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Video grid layout */
.videoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.videoGridItem {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.videoGridItem:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gridVideoElement {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.videoInfo {
  padding: 16px;
}

.videoTitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-text-color, #333);
  margin-bottom: 4px;
}

.videoDesc {
  font-size: 14px;
  color: var(--secondary-text-color, #666);
  line-height: 1.4;
}

/* Features grid */
.featuresGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.featureCard {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  border: 1px solid #e9ecef;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featureCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featureIcon {
  font-size: 32px;
  margin-bottom: 12px;
}

.featureTitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-text-color, #333);
  margin-bottom: 8px;
}

.featureDesc {
  font-size: 14px;
  color: var(--secondary-text-color, #666);
  line-height: 1.4;
}

/* Responsive design */
@media (max-width: 768px) {
  .componentSection {
    padding: 16px;
  }

  .videoGrid {
    grid-template-columns: 1fr;
  }

  .featuresGrid {
    grid-template-columns: 1fr;
  }

  .controlsRow {
    flex-wrap: wrap;
    gap: 8px;
  }

  .controlButton {
    padding: 6px 12px;
    font-size: 12px;
  }

  .videoElement {
    max-height: 250px;
  }

  .gridVideoElement {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .videoControls {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .progressContainer {
    flex-direction: column;
    gap: 8px;
  }

  .timeLabel {
    min-width: auto;
  }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
  .componentSection {
    background-color: var(--dark-background-color, #1a1a1a);
  }

  .componentItem {
    background: var(--dark-card-background, #2d2d2d);
    border-color: var(--dark-border-color, #404040);
  }

  .sectionTitle {
    color: var(--dark-primary-text-color, #ffffff);
  }

  .itemLabel {
    color: var(--dark-primary-text-color, #ffffff);
  }

  .itemDesc {
    color: var(--dark-secondary-text-color, #cccccc);
  }

  .videoGridItem,
  .featureCard {
    background: #383838;
    border-color: #555;
  }

  .videoTitle,
  .featureTitle {
    color: var(--dark-primary-text-color, #ffffff);
  }

  .videoDesc,
  .featureDesc {
    color: var(--dark-secondary-text-color, #cccccc);
  }
}